var express = require('express');
var app = express();
var db = require('./model/db')
var bodyParser = require('body-parser');
var db = require('./model/db.js');
//这些设定好之后post请求了就有了req.body了
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

app.set('view engine', 'ejs');
app.use(express.static('./public'))

app.get('/',function(req,res){
        res.render('aaa')


        
})  
app.get('/du',function(req,res){
        res.send('进错了哦')
})  

app.listen(3000);